<extend name="Public/List/Common"/>


<block name="pageHeader">
    <include file="Public/List/Header/header.search.add" add-title="添加广告位"/>
</block>


<block name="pageContent">
    <div class="bjui-pageContent tableContent">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th>
                    表id
                </th>
                <th>
                    广告位置名称
                </th>
                <th>
                    广告位宽度
                </th>
                <th>
                    广告位高度
                </th>
                <th>
                    状态
                </th>
                <th>
                    创建时间
                </th>
                <th>
                    更新时间
                </th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>

            <volist name="adPositionList" id="vo">

                <tr>
                    <td>
                        {$vo.id}
                    </td>
                    <td>
                        {$vo.title}
                    </td>
                    <td>
                        {$vo.width}
                    </td>
                    <td>
                        {$vo.height}
                    </td>
                    <td>
                        {$vo.status|columnToName="DEFAULE_STATUS",###}
                    </td>
                    <td>
                        {$vo.create_time|time_format}
                    </td>
                    <td>
                        {$vo.update_time|time_format}
                    </td>
                    <td>
                        <a href="{:U('edit?id='.$vo['id'])}" class="btn btn-green"
                           data-toggle="dialog" data-id="dialog-normal" data-mask="true" data-title="编辑">编辑</a>
                        <a href="{:U('toggleStatus?id='.$vo['id'])}" class="btn btn-{$vo['status']==0?'blue':'red'}"
                           data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">{$vo['status']==0?'启用':'禁用'}</a> <a
                            href="{:U('del?id='.$vo['id'])}" class="btn btn-red"
                            data-toggle="doajax">删除</a>
                    </td>
                </tr>

            </volist>

            </tbody>
        </table>
    </div>
</block>